<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title></title>
    <script src="jquery-3.1.0.min.js"></script>
    <script src="jquery-ui-1.12.0/jquery-ui.js"></script>
    <link rel="stylesheet" href="jquery-ui-1.12.0/jquery-ui.css"/>

    <style type="text/css">

    </style>
</head>
<body>
    <div id="accordion">
        <h3>选项一</h3>
        <div>
            <p>
                hello world
            </p>
        </div>

        <h3>选项二</h3>
        <div>
            <p>
                hello world
            </p>
        </div>

        <h3>选项三</h3>
        <div>
            <p>
                hello world
            </p>
        </div>
    </div>

    <script>
        $(document).ready(function(){
            $("#accordion").accordion();
        });
    </script>
</body>
</html>

